package com.manage.server.controller.admin;

import com.manage.dto.VwUserActivityDetailsDTO;
import com.manage.result.PageResult;
import com.manage.server.service.VwUserActivityDetailsService;
import com.manage.vo.VwUserActivityDetailsVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import com.manage.result.Result;

@RestController
@RequestMapping("/vwUserActivityDetails")
public class VwUserActivityDetailsController {

    @Autowired
    private VwUserActivityDetailsService vwUserActivityDetailsService;

    /**
     * 多项分类分页查询
     * @param vwUserActivityDetailsDTO
     * @return
     */
    @PostMapping("/page")
    public PageResult<VwUserActivityDetailsVO> findVwUserActivityDetails(@RequestBody VwUserActivityDetailsDTO vwUserActivityDetailsDTO) {
        return vwUserActivityDetailsService.findVwUserActivityDetailsByPage(vwUserActivityDetailsDTO);
    }
}